﻿@*@model IEnumerable<Category>
@{ 
    var categoryId = ViewContext.HttpContext.Request.Query.SingleOrDefault(m => m.Key == "categoryId");
}

<ul class="dropdown-menu">
    @foreach (var item in Model)
    {
        <li @if (categoryId.Value.ToString() == item.Id.ToString()) { <text>class="active"</text>}><a href="/c/@item.Channel.ToString()?categoryId=@item.Id">@item.Name</a></li>
    }
</ul>*@